package com.wyh.service.serviceImpl.g3serviceimpl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wyh.domain.po.g3po.G3Prestorage;
import com.wyh.mapper.g3mapper.G3PrestorageMapper;
import com.wyh.service.g3service.PrestorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Kirsch
* @description 针对表【prestorage(预存账户表)】的数据库操作Service实现
* @createDate 2024-06-10 22:03:15
*/
@Service
public class PrestorageServiceImpl extends ServiceImpl<G3PrestorageMapper, G3Prestorage>
    implements PrestorageService{

    @Autowired
    private G3PrestorageMapper g3PrestorageMapper;

    @Override
    public List<G3Prestorage> findPrestoragesByResourceId(int resourceid) {
        return g3PrestorageMapper.findPrestoragesByResourceId(resourceid);
    }

    @Override
    public List<G3Prestorage> findSpecificPrestorage(int resourceId) {
        return g3PrestorageMapper.findSpecificPrestorage(resourceId);
    }

    @Override
    public List<G3Prestorage> findGeneralPrestorage(int resourceId) {
        return g3PrestorageMapper.findGeneralPrestorage(resourceId);
    }

    @Override
    public void updatePrestorage(G3Prestorage g3Prestorage) {
        g3PrestorageMapper.updatePrestorage(g3Prestorage);
    }
}




